package remote.activities;

import remote.controllers.DashboardController;
import remote.activities.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

public class DashboardActivity extends Activity
{
	private DashboardController _controller;
	
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dashboard);
		
		_controller = new DashboardController(this);
		
		Button btnConnection = (Button)findViewById(R.id.dashboard_btnConnection);
		btnConnection.setOnClickListener(_controller);
		
		Button btnWMP = (Button)findViewById(R.id.dashboard_btnWMP);
		btnWMP.setOnClickListener(_controller);
		
		Button btnSystem = (Button)findViewById(R.id.dashboard_btnSystem);
		btnSystem.setOnClickListener(_controller);
	}

	public void goHome(Context context) {
		final Intent intent = new Intent(context, DashboardActivity.class);
		intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		context.startActivity(intent);
	}
}
